// const {getOptions}  = require('loader-utils')
const parse = require('./leis-parse')
console.log(parse)

const loader = function(source) {
  // const options = getOptions(this);
  // source = source.replace(/\[name\]/g, options.name);
  const parseObj = parse(source)
  return `export default ${ JSON.stringify(parseObj) }`;
}

module.exports = loader